package com.chapter4.jicheng;


/**
 * 继承
 */
public class Animal {
    //父类构造方法
    Animal(){
        System.out.println("Animal 构造方法");
    }
    void eat(){
        System.out.println("Animal eat");
    }

    void sleep(){
        System.out.println("Animal sleep");
    }

    void breathe(){
        System.out.println("Animal breathe");
    }
}
